<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <link rel="icon" href="<%= BASE_URL %>logo.ico">
  <title><%= webpackConfig.name %></title>
  <script>
    //监听加载状态改变
    document.onreadystatechange = completeLoading;

    //加载状态为complete时移除loading效果
    function completeLoading() {
      if (document.readyState == "complete") {
        var loadingMask = document.getElementById('loadingDiv');
        loadingMask.parentNode.removeChild(loadingMask);
      }
    }

    // var ipc = window.require("electron").ipcRenderer;
    // document.onkeydown = function (e) {
    //   let key = window.event.keyCode;
    //   if (window.event.keyCode == 73 && e.ctrlKey) {
    //     ipc.send("open-dev-tools", "");
    //   }
    // };

  </script>
  <style>
    ::-webkit-scrollbar {
      display: none;
    }
  </style>
</head>

<body>
  <noscript>
    <strong>We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it
      to continue.</strong>
  </noscript>
  <div id="loadingDiv"
    style="display: table;width: 100%;min-height: 100vh;text-align: center;background-color: #111523;">
    <div style="display: table-cell;vertical-align: middle;padding-top: 4rem;padding-bottom: 4rem;">
      <img
        src=""
        width="256" height="32">
      <h1
        style="font-size: 4rem;line-height: 5rem;margin-top: 2rem;margin-bottom: 0;color: #fff;font-family: 'Helvetica Neue', Helvetica, sans-serif;">
        UiAuto</h1>
    </div>
  </div>
  <div id="app"></div>

  <!-- built files will be auto injected -->
</body>

</html>